package com.example.demo.service;

import com.example.demo.entity.User;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserService {
    User findByUserName(String username);

    void create(User user);

    User findById(int id);

    void updateUser(User user);

    List<User> findAllUser();

    PageInfo<User> selectUserPage(Integer pageNum, Integer pageSize);

    void deleteUser(int id);

}
